package com.dhcc.bpm.modules.metadata.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.bpm.modules.metadata.entity.ApiMetadataMapper;
import com.dhcc.bpm.modules.metadata.mapper.ApiMetadataMapperMapper;
import com.dhcc.bpm.modules.metadata.service.IApiMetadataMapperService;
import com.dhcc.bpm.modules.metadata.vo.ApiMetadataMapperVO;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 接口映射表 服务实现类
 *
 * @author ccab
 * @since 2020-07-27
 */
@Service("opc_api_metadata_mapper")
public class ApiMetadataMapperServiceImpl extends ServiceImpl<ApiMetadataMapperMapper, ApiMetadataMapper> implements IApiMetadataMapperService {

	@Override
	public IPage<ApiMetadataMapperVO> selectApiMetadataMapperPage(IPage<ApiMetadataMapperVO> page, ApiMetadataMapperVO apiMetadataMapper) {
		return page.setRecords(baseMapper.selectApiMetadataMapperPage(page, apiMetadataMapper));
	}

	@Override
	public ApiMetadataMapper selectServerApiMetaData(Long apiId, Long apiMetaDataId,String  messageCheck) {
		return baseMapper.selectServerApiMetaData(apiId,apiMetaDataId,messageCheck);
	}

	@Override
	public List<String> selectGroupBy(Long apiId) {
		return baseMapper.selectGroupBy(apiId);
	}
}
